package routers

import (
	"hello/controllers"
	"github.com/astaxie/beego"
)

func init() {
    //beego.Router("/", &controllers.MainController{})
    beego.Router("/register", &controllers.RegController{},"get:ShowReg;post:HandleReg")
    beego.Router("/", &controllers.LoginController{},"get:ShowLogin;post:HandleLogin")
    beego.Router("/ShowArticle", &controllers.ArticleController{},"get:ShowArticleList")
    beego.Router("/AddArticle", &controllers.ArticleController{},"get:ShowAddArticle;post:HandleAddArticle")
	//显示文章详情
	beego.Router("/showArticleDetail",&controllers.ArticleController{},"get:ShowArticleDetail")
    //删除文章
	beego.Router("/DeleteArticle",&controllers.ArticleController{},"get:HandleDelete")
	//添加类型
	beego.Router("/AddArticleType",&controllers.ArticleController{},"get:ShowAddType;post:HandleAddType")



}
